#include<stdio.h>
#include<string.h>
int main()
{
	char tongji[6] = { "ae9RR" };
	int shuzi=0;
	int bigA=0;
	int smallA = 0;
	for (int i = 0; i < 6; i++)
	{
		tongji[i];
		if (tongji[i] >= '0' && tongji[i] <= '9')
		{
			shuzi++;
		}
		if (tongji[i] >= 'A' && tongji[i] <= 'Z')
		{
			bigA++;
		}
		if (tongji[i] >= 'a' && tongji[i] <= 'z')
		{
			smallA++;
		}
		


	}

	printf("%d %d %d", shuzi, bigA, smallA);


	return 0;
}